
import Relay from "react-relay";
export default class OrderPaymentRecordMutation extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { orderPaymentRecord }`;
    }

    getVariables() { 
        return {
            argsInput: {
                pageSize: this.props.pageSize,
                pageNum: this.props.pageNum,
                orderId: this.props.orderId,
            }
        }
    }

   getFatQuery() {
    return Relay.QL`fragment on orderPaymentRecordPayload {
            data {
                errorCode
                value
                totalResult
                id
                orderPaymentRecordDomainList{
                    loanMoney
                    createTime
                    masterPayment
                    totalPurchaseMoney
                    payment
                    mainAccount
                    partyAEnName
                    orderMoney
                    partyBEnid
                    orderId
                    partyBEnName
                    masterOrderId
                    totalSaleMoney
                    source
                    partyAEnid
                    paymentRecordId
                }        
            }
        }`;
}

getConfigs() {
    return [{
        type: 'REQUIRED_CHILDREN',
        children: [Relay.QL`
               fragment on orderPaymentRecordPayload  {
                    data {
                        errorCode
                        value
                        totalResult
                        id
                        orderPaymentRecordDomainList{
                            loanMoney
                            createTime
                            masterPayment
                            totalPurchaseMoney
                            payment
                            mainAccount
                            partyAEnName
                            orderMoney
                            partyBEnid
                            orderId
                            partyBEnName
                            masterOrderId
                            totalSaleMoney
                            source
                            partyAEnid
                            paymentRecordId
                        }
                    }
                 }
            `]
    }];
}

}
